package org.example.huawei;

import java.util.Scanner;

/**
 * @author: lynn
 * @Descript: 求最小公倍数，辗转相除法
 * @date: 2021/2/24 22:40
 * @version: 1.0
 */
public class HW108 {

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        String input=sc.nextLine();
        int a=Integer.valueOf(input.split(" ")[0]);
        int b=Integer.valueOf(input.split(" ")[1]);

        int c=a*b;
        int r=0;

        if (a<b){
            r=a;
            a=b;
            b=r;
        }

        while (true){
            r=a%b;
            if (r==0){
                System.out.println(c/b);
                break;
            }else {
               a=b;
               b=r;
            }

        }

    }
}
